class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  before_filter :set_article, :get_article_count
  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery # :secret => 'e100aa2c418ad4abcfa26e251a6220ef'
  
  # See ActionController::Base for details 
  # Uncomment this to filter the contents of submitted sensitive data parameters
  # from your application log (in this case, all fields with names like "password"). 
  # filter_parameter_logging :password

   protected
  def set_article
    @article = Article.current.first
  end

  def get_article_count
    @article_count = Article.current.count || 0
  end
end
